package cn.achao.csr.api.model.dto;

import cn.achao.csr.base.constant.enums.ThirdAuthEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 授权
 * @Author: achao
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthDTO {

    @NotNull(message = "账号不能为空")
    private String userAccount;

    @NotNull(message = "openId不能为空")
    private String openId;

    @NotNull(message = "用户信息不能为空")
    private String userInfo;

    @NotNull(message = "第三方认证")
    private ThirdAuthEnum thirdAuth;

}
